package com.paginasenlanube.service;

import java.awt.image.BufferedImage;
import java.io.IOException;

import org.springframework.web.multipart.MultipartFile;

import com.google.gson.JsonArray;
import com.paginasenlanube.model.Image;
import com.paginasenlanube.utils.UserException;

public interface ImageService {
	
	public Image saveTmpImage(MultipartFile mpf, int width) throws IOException,UserException;
	
	public BufferedImage saveImageCrop(JsonArray json,String imagePath);
	
	public String saveImage(JsonArray json, Image image, int width, int height,String flag);

	public String saveGalleryImage(JsonArray json, Image image, int width, int height,String flag);
	
	public String daleteGalleryImage(String id);
	
	public Image updateImage(JsonArray json);

	public void updateImagePosition(JsonArray json);

}
